@echo off
cls
setlocal enabledelayedexpansion

SET DateStamp=%date:~6,4%%date:~3,2%%date:~0,2%
echo DateStamp=%DateStamp%

set "sourcedir=C:\Documents and Settings\rhythm divine\My Documents\Visual Studio 2010\Projects\BulkRenamer\OUTPUT\Installer"
set "destdir=C:\Documents and Settings\All Users\Documents\BulkRenamerInstaller\%DateStamp%"

IF EXIST "%sourcedir%\*.*" goto R_Move
IF NOT EXIST "%sourcedir%\*.*" goto EOF


:R_Move
IF NOT EXIST "%destdir%" mkdir "%destdir%"
IF EXIST "%destdir%\*.*" del /f /q "%destdir%\*.*"

xcopy /y  "%sourcedir%\*.*" "%destdir%\"
goto EOF

:EOF
REM echo "$(ProjectDir)COPY_Installer.bat"
REM echo copy /y "$(SolutionDir)\OUTPUT\Installer\*.*" "C:\Documents and Settings\All Users\Documents\BulkRenamerInstaller\"%date:~6,4%%date:~3,2%%date:~0,2%"\*.*"
